import cookie from 'cookie_js'

const TOKEN_KEY = "admin_token"
const USERNAME_KEY = "username";

export function getToken(){
    return cookie.get(TOKEN_KEY);
}

export function setToken(value){
    return cookie.set(TOKEN_KEY,value);
}

export function removeToken(){
    return cookie.remove(TOKEN_KEY);
}

export function setUserName(value){
    return cookie.set(USERNAME_KEY,value);
}
export function getUserName(){
    return cookie.get(USERNAME_KEY);
}

export function removeUserName(){
    return cookie.remove(USERNAME_KEY);
}